page_hxjg = (state={},action)->
  switch action.type
    when 'HXJG/GET_LIST_START'
      Object.assign {},state,{isLoading:true}
    when 'HXJG/GET_LIST_COMPLETED'
      Object.assign {},state,
        list:action.payload.list
        isLoading:false
        completed:true

    when 'HXJG/REFRESH_LIST_START'
      Object.assign {},state,{
        list:[]
        isLoading:false
        refreshing:true
      }
    when 'HXJG/REFRESH_LIST_COMPLETED'
      Object.assign {},state,{
        list:action.payload.list
        isLoading:false
        refreshing:false
        lastFetchTime:action.payload.lastFetchTime
        completed:true
      }
    else
      state

module.exports = page_hxjg
